﻿
using ConsoleAppB5.grapics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleAppB5
{
    public class Factory
    {
        public static Graphical GetGraphical(int arg)
        {
            Graphical grap=null;
            if (arg == 1)
            {
                grap = new Circular();
            }
            else if (arg == 2)
            {
                grap = new Rectangle();
            }
            else if (arg == 3)
            {
                grap = new Square();
            }
            else if (arg == 4)
            {
                grap = new Triangle();
            }
            return grap;
        } 
    }
}
